package baseClass;

import android.graphics.Canvas;
import java.util.ArrayList;

public class Layer
{
  public ArrayList<Sprite_Default> SubSprite = new ArrayList();
  private int Subnum = 0;
  public boolean touch = true;
  public boolean visible = true;
  
  public void AddSprite(Sprite_Default paramSprite_Default)
  {
    this.SubSprite.add(paramSprite_Default);
    this.Subnum += 1;
  }
  
  public void AlwaysRun()
  {
    update();
    int i = 0;
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      if (this.SubSprite.get(i) != null) {
        ((Sprite_Default)this.SubSprite.get(i)).AlwaysRun();
      }
      i += 1;
    }
  }
  
  public void ShowSprite(Canvas paramCanvas)
  {
    int i;
    if ((this.visible) && (this.Subnum != 0)) {
      i = 0;
    }
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      if (this.SubSprite.get(i) != null) {
        ((Sprite_Default)this.SubSprite.get(i)).DrawSprite(paramCanvas);
      }
      i += 1;
    }
  }
  
  public int getSubnum()
  {
    return this.Subnum;
  }
  
  public void recycleBitmap()
  {
    int i = 0;
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      if (this.SubSprite.get(i) != null) {
        ((Sprite_Default)this.SubSprite.get(i)).recycleBitmap();
      }
      i += 1;
    }
  }
  
  public void sceneChange()
  {
    sceneStart();
    int i = 0;
    for (;;)
    {
      if (i >= this.Subnum) {
        return;
      }
      if (this.SubSprite.get(i) != null) {
        ((Sprite_Default)this.SubSprite.get(i)).sceneChange();
      }
      i += 1;
    }
  }
  
  public void sceneStart() {}
  
  public void update() {}
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     baseClass.Layer
 * JD-Core Version:    0.7.0.1
 */